package com.health.medicine.model.dto.producer;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zhexueqi
 * @ClassName producerUpdateRequest
 * @since 2024/8/31    15:12
 */
@Data
public class ProducerUpdateRequest {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键ID")
    private Long id;

    /**
     * 企业名称
     */
    @Schema(description = "企业名称")
    private String name;

    /**
     * 许可证编号
     */
    @Schema(description = "许可证编号")
    private String licenseNumber;

    /**
     * 企业所在省份
     */
    @Schema(description = "企业所在省份")
    private String province;

    /**
     * 社会信用代码
     */
    @Schema(description = "社会信用代码")
    private String socialCreditCode;

    /**
     * 分类代码
     */
    @Schema(description = "分类代码")
    private String classificationCode;

    /**
     * 注册地址
     */
    @Schema(description = "注册地址")
    private String registeredAddress;

    /**
     * 法定代表人
     */
    @Schema(description = "法定代表人")
    private String legalRepresentative;

    /**
     * 企业负责人
     */
    @Schema(description = "企业负责人")
    private String companyLeader;

    /**
     * 监督机构
     */
    @Schema(description = "监督机构")
    private String supervisionAgency;

    /**
     * 投诉举报电话
     */
    @Schema(description = "投诉举报电话")
    private String complaintPhone;

    /**
     * 发证机关
     */
    @Schema(description = "发证机关")
    private String issuingAuthority;

    /**
     * 签发人
     */
    @Schema(description = "签发人")
    private String signatory;

    /**
     * 有效期至
     */
    @Schema(description = "有效期至")
    private Date validUntil;

    /**
     * 许可证状态 0-正常 ，1-正常
     */
    @Schema(description = "许可证状态 0-正常 ，1-正常")
    private Integer licenseStatus;

    /**
     * 签发日期
     */
    @Schema(description = "签发日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime issueTime;

    /**
     * 联系地址
     */
    @Schema(description = "联系地址")
    private String contactLocation;
}
